﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVC3DEMO.Models;
using MVC3DEMO.Models.BS;
namespace MVC3DEMO.Controllers
{
    public class HomeController : Controller
    {
        private SQLHeperDataContext sqlheper;
        private BS_Menu menuResposity;
        public HomeController()
        {

            sqlheper = new SQLHeperDataContext();
            menuResposity = new BS_Menu();
        }
        public ActionResult Index()
        {
            var listMenu = menuResposity.getListMenu();

            ViewData["listMenu"] = listMenu;
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View(listMenu);
        }

        public ActionResult About()
        {
            
           
            return View();
        }
    }
}
